package pers.cj.pdos.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenj
 * @since 2020-04-20
 */
public class GoodsInit extends Model<GoodsInit> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 商品id
     */
    private String goodsId;

    /**
     * 仓库id
     */
    private String houseId;

    /**
     * 初期数量
     */
    private BigDecimal initNum;

    /**
     * 初期成本
     */
    private BigDecimal initCost;

    /**
     * 初期总额
     */
    private BigDecimal initAmt;

    /**
     * 时间
     */
    private Date time;

    /**
     * 所属公司id
     */
    private String companyId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }
    public String getHouseId() {
        return houseId;
    }

    public void setHouseId(String houseId) {
        this.houseId = houseId;
    }
    public BigDecimal getInitNum() {
        return initNum;
    }

    public void setInitNum(BigDecimal initNum) {
        this.initNum = initNum;
    }
    public BigDecimal getInitCost() {
        return initCost;
    }

    public void setInitCost(BigDecimal initCost) {
        this.initCost = initCost;
    }
    public BigDecimal getInitAmt() {
        return initAmt;
    }

    public void setInitAmt(BigDecimal initAmt) {
        this.initAmt = initAmt;
    }
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GoodsInit{" +
            "id=" + id +
            ", goodsId=" + goodsId +
            ", houseId=" + houseId +
            ", initNum=" + initNum +
            ", initCost=" + initCost +
            ", initAmt=" + initAmt +
            ", time=" + time +
            ", companyId=" + companyId +
        "}";
    }
}
